//
//  HACTecNode.h
//  HStockCharts
//
//  Created by Hotacool on 2018/9/28.
//

#import "HACChartNode.h"
#import <HStockCharts/HStockCharts.h>

typedef NS_ENUM(NSUInteger, HACTecType) {
    HACTecTypeVolume = 0,
    HACTecTypeAmount,
    HACTecTypeMACD,
    HACTecTypeKDJ,
    HACTecTypeRSI,
    HACTecTypeBOLL,
    HACTecTypePSY,
    HACTecTypeOBV,
    HACTecTypeDMI,
    HACTecTypeWR,
    HACTecTypeASI,
    HACTecTypeDMA,
    HACTecTypeBIAS,
    HACTecTypeVR,
    HACTecTypeCCI,
};

@interface HACTecNode : HACChartNode
@property (nonatomic, assign) HACTecType tecType;

- (instancetype)initWithHostLayer:(CALayer *)layer tecType:(HACTecType)type;

- (NSAttributedString*)lastValueString;
- (HACChartDataEntry*)lastValue;
- (NSAttributedString *)stringAtChartForIndex:(NSUInteger)index ;
- (void)setTec:(HACTecType)type withParam:(NSArray<NSNumber*>*)param;
@end
